package com.pda.common.pages.codereset;

import com.pda.common.basemvp.present.BasePresenter;
import com.pda.common.bean.CodeDeatailBean;
import com.pda.common.beanin.CodeQueryInBean;

import java.util.List;

public class CodeResetPresent extends BasePresenter<CodeResetModel, CodeResetView> implements CodeResetModel.CallBack {
    public void codeReset(CodeQueryInBean codeQueryInBean) {
        view.showProgress();
        model.codeReset(codeQueryInBean,this);
    }

    @Override
    public void ontip(String str) {
        if(view==null){
            return;
        }
        view.tip(str);
    }

    @Override
    public void ontipwl(List<CodeDeatailBean.DataBean.ListWLBean> list) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipwl(list);
    }
}


